package com.selfdriving.activity;

import java.util.ArrayList;
import java.util.List;
import net.tsz.afinal.annotation.view.ViewInject;
import com.selfdriving.R;
import com.selfdriving.adapter.CommentAdapter;
import com.selfdriving.bean.Comment;
import android.os.Bundle;
import android.widget.ListView;

public class FeatureCommentActivity extends BaseActivity {
	@ViewInject(id = R.id.comment_list)
	ListView comment_list;

	private CommentAdapter adapter;

	private List<Comment> comments;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.feature_comment);
		comments = new ArrayList<Comment>();
		for (int i = 0; i < 6; i++) {
			Comment comment = new Comment();
			comments.add(comment);
		}
		adapter = new CommentAdapter(this, comments);
		comment_list.setAdapter(adapter);
		//DeviceUtils.setListViewHeightBasedOnChildren(comment_list);
	}

}
